{if $bIsDeleted}
<div class="message_info">
	{language text='Mod_Video.video_deleted'}
</div>
{/if}
{if $bIsFeatured}
<div class="message_info">
	{language text='Mod_Video.feature.done'}
</div>
{/if}

{if !$bIsProfile}
<div style="padding:8px; font-size:11pt; font-weight:bold; letter-spacing:2px; text-align:center;">
{if $sCategoryTitle != ""}
	{$sCategoryTitle}
	{if $sType != ""}
		:
	{/if}
{/if}
{if $sType != ""}
	{language text="Mod_Video.type.`$sType`"}
{/if}
</div>
<table style="width:100%;" cellpadding="0" cellspacing="8">
<tr>
<td style="width:75%; vertical-align:top; text-align:center;">
{/if}

<div style="text-align:center;">
{if count($aItems) == 0}
<div style="font-size:10pt;">
	{language text='Mod_Video.no_videos_found'}
</div>
{else}
<div style="text-align:left;">
	{include file="$sRootPath/_blocks/pager_nav_button.html"}
</div>
<table style="margin:auto; text-align:left;" cellpadding="8" cellspacing="8">
<tr>
{foreach from=$aItems item=aItem key=iKey}
<td style="width:122px; vertical-align:top;">
	{if $bIsAdmins && $aItem.reported}
	<b>{$aItem.reported}</b>
	<br />
	{/if}
	<div style="width:120px;">
    <table style="margin-left:auto;margin-right:auto;vertical-align;top;">
    <tr>
    <td>
	<div class="wrap1">
		<div class="wrap2">
        	<div class="wrap3">
            	<div class="wrap4">
                	<div class="wrap5">
                		<a href="{url link='public.videos' id=$aItem.vid_id foxseotitle=$aItem.vid_title}">
						{img max_width="120" src="`$sGImageUrl``$aItem.vid_id`.jpg" src_def="design/pic/noimage_120.jpg" alt="" id="mainimage"}
						</a>
					 </div>
					</div>
				</div>
			</div>
		</div>
	</td>
	</tr>
	</table>
	<div style="font-size:9pt; font-weight:bold;">
		<a href="{url link='public.videos' id=$aItem.vid_id foxseotitle=$aItem.vid_title}">
			{$aItem.vid_title|process_code|escape}
		</a>
		{if $aItem.duration}<div style="font-size:8pt;">{$aItem.duration|video_time}</div>{/if}
	</div>
	<br />
	{language text='Mod_Video.from_user'}: <a href="{url link='public.user' name=$aItem.user}">{$aItem.user}</a>
	<br />
	{language text='Mod_Video.views'}: {$aItem.vid_total}
	<br />
	{include file="$sRootPath/_blocks/videostars.html"}
	<br />
	{$aItem.vid_rating_count} {language text='Mod_Video.ratings'}
	{if $bIsAdmins}
	<div style="padding-top:6px;">
		[ <a href="{url link='current' dvideo=$aItem.vid_id}">{language text='Mod_Video.delete'}</a> ]
		<br />
		[
		<span id="feature_content_{$aItem.vid_id}"><a href="javascript:void(0);" onclick="xajax_video{if $aItem.featured}Remove{else}Add{/if}Feature('{$aItem.vid_id}', 'feature_content_{$aItem.vid_id}');">{if $aItem.featured}{language text='Mod_Video.remove_feature'}{else}{language text='Mod_Video.feature'}{/if}</a></span>
		]
		{if $iHotVideo != $aItem.vid_id}
		<div id="hot_video_{$aItem.vid_id}">
		[ <a href="javascript:void(0);" onclick="xajax_videoHotAdd('{$aItem.vid_id}', 'hot_video_{$aItem.vid_id}');">{language text='Mod_Video.hot_video'}</a> ]
		</div>
		{/if}
		{if $bIsAdmins && $aItem.reported}
		[ <a href="{url link='current' rmreport=$aItem.vid_id}" onclick="if ( !sure('{language text='Mod_Language.are_you_sure'}') ) return false;">{language text='Mod_Video.ignore_report'}</b></a> ]
		{/if}
	</div>
	{/if}

	</div>
</td>
{if $iKey % 4 == 3}
</tr>
<tr>
	<td colspan="3">
		<div style="padding:4px;" class="border13"></div>
		<br />
		<br />
	</td>
</tr>
<tr>
{/if}
{/foreach}
</tr>
</table>
<div style="text-align:left;">
	{include file="$sRootPath/_blocks/pager_nav_button.html"}
</div>
{/if}
</div>

{if !$bIsProfile}
</td><td style="width:25%; vertical-align:top; font-size:10pt;">

	{literal}
	<script type="text/javascript" src="design/js/jquery.js"></script>
	<script type="text/javascript" src="design/js/jquery.corner.js"></script>
	<script type="text/javascript">
		$(document).ready(function()
		{
		    $('#rounded_category').corner('10px');
		    $('#rounded_browse').corner('10px');
		})

	</script>
	{/literal}

	<span style="font-size:11pt; font-weight:bold;">{language text='Mod_Video.category.ucfirst'}</span>
	<div style="padding-left:5px;">
		<div class="border13" style="padding:8px;" id="rounded_category">
		{foreach from=$aCategories item=aCategory}
			<div class="list">
			{if $iListId == $aCategory.list_id}
			<img src="design/pic/spacer.gif" class="sqr1" alt="" height="7" width="7" />
			{/if}
			<a href="{url link='current' listid=$aCategory.list_id foxseotitle=$aCategory.list_name}" class="link_item">{$aCategory.list_name}</a></div>
		{/foreach}
		</div>
	</div>

	<br />
	<br />

	<span style="font-size:11pt; font-weight:bold;">{language text='Mod_Video.browse.ucfirst'}</span>
	<div style="padding-left:5px;">
		<div class="border13" style="padding:8px;" id="rounded_browse">
		{foreach from=$aBrowseLinks item=aLink}
			<div class="list">
			{if $sType == $aLink}
			<img src="design/pic/spacer.gif" class="sqr1" alt="" height="7" width="7" />
			{/if}
			<a href="{url link='current' type=$aLink}" class="link_item">{language text="Mod_Video.type.`$aLink`"}</a></div>
		{/foreach}
		</div>
	</div>

	<br />

	{Tag::List type='videos'}

</td>
<Ytr>
</table>
{/if}